package com.lsp.data;

import com.lsp.data.bean.GankInfoList;
import com.lsp.data.net.RetrofitManager;
import rx.Observable;

/**
 * @author com.lsp.ibxs
 * @created 16/11/8 20:52
 */
public class RemoteDataManager {

  private static RemoteDataManager INSTANCE;
  private final RetrofitManager retrofitManager;

  public static RemoteDataManager getInstance() {
    if (INSTANCE == null) {
      INSTANCE = new RemoteDataManager();
    }
    return INSTANCE;
  }

  public RemoteDataManager() {
    this.retrofitManager = RetrofitManager.Creator.create();
  }

  public Observable<GankInfoList> getPlanbookList() {

    return retrofitManager.getGankInfo("10/1");
  }
}
